﻿// Decompiled with JetBrains decompiler
// Type: TaleWorlds.MountAndBlade.StandingPointWithTeamLimit
// Assembly: TaleWorlds.MountAndBlade, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: D5209D1B-76B5-47CA-B957-255CD4B2CE6B
// Assembly location: D:\steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\TaleWorlds.MountAndBlade.dll

using TaleWorlds.Core;

#nullable disable
namespace TaleWorlds.MountAndBlade
{
  public class StandingPointWithTeamLimit : StandingPoint
  {
    public Team UsableTeam { get; set; }

    public override bool IsDisabledForAgent(Agent agent)
    {
      return agent.Team != this.UsableTeam || base.IsDisabledForAgent(agent);
    }

    protected internal override bool IsUsableBySide(BattleSideEnum side)
    {
      return side == this.UsableTeam.Side && base.IsUsableBySide(side);
    }
  }
}
